<template>
  <div class="page">
    <iframe src="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1f7125112b74db52&redirect_uri=https%3A%2F%2Fopen.faceid.qq.com%2Fv1%2Fapi%2FgetCode%3FbizRedirect%3Dhttps%253A%252F%252Ffaceid.qq.com%252Fapi%252Fauth%252FgetOpenidAndSaveToken%253Ftoken%253DC614B84E-D19A-40F6-8A3D-8F0E7DE530CD&response_type=code&scope=snsapi_base&state=&component_appid=wx9802ee81e68d6dee#wechat_redirect" noborder width="100%" height="100%"></iframe>
  </div>
</template>
<script type="text/javascript">
export default {
  data() {
    return {
      url: '',
    }
  },
  created() {
    this.url = this.$route.query.url
    // https://www.test.miaixyt.com/auth?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMzUyNzAwMjY3ODQxMTg3ODQwIiwiaWF0IjoxNjYyMjcyMDczLCJleHAiOjE2NjM1NjgwNzN9.Ij1z7mhKoByyl_O9L6XDJUmUfHEGfx0YDpBTAiNJZFU&url=https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1f7125112b74db52&redirect_uri=https%3A%2F%2Fopen.faceid.qq.com%2Fv1%2Fapi%2FgetCode%3FbizRedirect%3Dhttps%253A%252F%252Ffaceid.qq.com%252Fapi%252Fauth%252FgetOpenidAndSaveToken%253Ftoken%253DC614B84E-D19A-40F6-8A3D-8F0E7DE530CD&response_type=code&scope=snsapi_base&state=&component_appid=wx9802ee81e68d6dee#wechat_redirect
    // this.url = 'http://localhost:8080/auth?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMzUyNzAwMjY3ODQxMTg3ODQwIiwiaWF0IjoxNjYyMjcyMDczLCJleHAiOjE2NjM1NjgwNzN9.Ij1z7mhKoByyl_O9L6XDJUmUfHEGfx0YDpBTAiNJZFU&url=https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx974abf1bb0310fd2&redirect_uri=https%3A%2F%2Fopen.faceid.qq.com%2Fv1%2Fapi%2FgetCode%3FbizRedirect%3Dhttps%253A%252F%252Ffaceid.qq.com%252Fapi%252Fauth%252FgetOpenidAndSaveToken%253Ftoken%253DC614B84E-D19A-40F6-8A3D-8F0E7DE530CD&response_type=code&scope=snsapi_base&state=&component_appid=wx9802ee81e68d6dee#wechat_redirect'
    https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx974abf1bb0310fd2&redirect_uri=https%3A%2F%2Fopen.faceid.qq.com%2Fv1%2Fapi%2FgetCode%3FbizRedirect%3Dhttps%253A%252F%252Ffaceid.qq.com%252Fapi%252Fauth%252FgetOpenidAndSaveToken%253Ftoken%253DC614B84E-D19A-40F6-8A3D-8F0E7DE530CD&response_type=code&scope=snsapi_base&state=&component_appid=wx9802ee81e68d6dee#wechat_redirect
    if (this.url) {
      location.href = this.url
    }
  },
  methods: {
  }
}
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
  .page {
    margin: auto;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    iframe {
      border: none;
    }
  }
</style>
